﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace CommunitySystemModel
{
    [Serializable]
    [DataContract]
    public class ZhaoLuJiHuaDetail1Model
    {
        private int _ID;
        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        private int _Sec;
        [DataMember]
        public int Sec
        {
            get { return _Sec; }
            set { _Sec = value; }
        }
        private int _ZhaoLuJiHuaID;
        [DataMember]
        public int ZhaoLuJiHuaID
        {
            get { return _ZhaoLuJiHuaID; }
            set { _ZhaoLuJiHuaID = value; }
        }

        private int _ZhaoLuZhiWeiID;
        [DataMember]
        public int ZhaoLuZhiWeiID
        {
            get { return _ZhaoLuZhiWeiID; }
            set { _ZhaoLuZhiWeiID = value; }
        }

        private int _LiangNian;
        [DataMember]
        public int LiangNian
        {
            get { return _LiangNian; }
            set { _LiangNian = value; }
        }

        private int _YXCGB;
        [DataMember]
        public int YXCGB
        {
            get { return _YXCGB; }
            set { _YXCGB = value; }
        }

        private int _YXJWHGB;
        [DataMember]
        public int YXJWHGB
        {
            get { return _YXJWHGB; }
            set { _YXJWHGB = value; }
        }

        private int _DXSCG;
        [DataMember]
        public int DXSCG
        {
            get { return _DXSCG; }
            set { _DXSCG = value; }
        }

        private int _SanZhi;
        [DataMember]
        public int SanZhi
        {
            get { return _SanZhi; }
            set { _SanZhi = value; }
        }

        private int _BX;
        [DataMember]
        public int BX
        {
            get { return _BX; }
            set { _BX = value; }
        }

        private int _ZF;
        [DataMember]
        public int ZF
        {
            get { return _ZF; }
            set { _ZF = value; }
        }

        private int _ZHGL;
        [DataMember]
        public int ZHGL
        {
            get { return _ZHGL; }
            set { _ZHGL = value; }
        }

        private int _XXGL;
        [DataMember]
        public int XXGL
        {
            get { return _XXGL; }
            set { _XXGL = value; }
        }

        private int _CWGL;
        [DataMember]
        public int CWGL
        {
            get { return _CWGL; }
            set { _CWGL = value; }
        }

        private int _JJGL;
        [DataMember]
        public int JJGL
        {
            get { return _JJGL; }
            set { _JJGL = value; }
        }

        private int _CSJSGL;
        [DataMember]
        public int CSJSGL
        {
            get { return _CSJSGL; }
            set { _CSJSGL = value; }
        }

        private int _NCJSGL;
        [DataMember]
        public int NCJSGL
        {
            get { return _NCJSGL; }
            set { _NCJSGL = value; }
        }
        private int _BSYJS;
        [DataMember]
        public int BSYJS
        {
            get { return _BSYJS; }
            set { _BSYJS = value; }
        }

        private int _SSJYS;
        [DataMember]
        public int SSJYS
        {
            get { return _SSJYS; }
            set { _SSJYS = value; }
        }
        private int _BKJYS;
        [DataMember]
        public int BKJYS
        {
            get { return _BKJYS; }
            set { _BKJYS = value; }
        }

        private int _BK;
        [DataMember]
        public int BK
        {
            get { return _BK; }
            set { _BK = value; }
        }

        private int _DZJYS;
        [DataMember]
        public int DZJYS
        {
            get { return _DZJYS; }
            set { _DZJYS = value; }
        }

        private int _DZ;
        [DataMember]
        public int DZ
        {
            get { return _DZ; }
            set { _DZ = value; }
        }

        private int _BS;
        [DataMember]
        public int BS
        {
            get { return _BS; }
            set { _BS = value; }
        }

        private int _SS;
        [DataMember]
        public int SS
        {
            get { return _SS; }
            set { _SS = value; }
        }

        private int _XS;
        [DataMember]
        public int XS
        {
            get { return _XS; }
            set { _XS = value; }
        }

        private int _WYQ;
        [DataMember]
        public int WYQ
        {
            get { return _WYQ; }
            set { _WYQ = value; }
        }

        private int _SSYJS;
        [DataMember]
        public int SSYJS
        {
            get { return _SSYJS; }
            set { _SSYJS = value; }
        }

        private string _Duty;
        [DataMember]
        public string Duty
        {
            get { return _Duty; }
            set { _Duty = value; }
        }

        private string _OrgName;
        [DataMember]
        public string OrgName
        {
            get { return _OrgName; }
            set { _OrgName = value; }
        }

        private string _OrgName_Duty;
        [DataMember]
        public string OrgName_Duty
        {
            get { return _OrgName_Duty; }
            set { _OrgName_Duty = value; }
        }

        public static ZhaoLuJiHuaDetail1Model FillEntity(DataRow dr)
        {
            ZhaoLuJiHuaDetail1Model right = new ZhaoLuJiHuaDetail1Model();
            if (dr.Table != null && dr.Table.Columns.Contains("Sec")) right.Sec = Convert.ToInt32(dr["Sec"]);
            if (!string.IsNullOrEmpty(dr["ID"].ToString())) right.ID = Convert.ToInt32(dr["ID"]);
            if (!string.IsNullOrEmpty(dr["ZhaoLuJiHuaID"].ToString())) right.ZhaoLuJiHuaID = Convert.ToInt32(dr["ZhaoLuJiHuaID"]);
            if (!string.IsNullOrEmpty(dr["ZhaoLuZhiWeiID"].ToString())) right.ZhaoLuZhiWeiID = Convert.ToInt32(dr["ZhaoLuZhiWeiID"]);
            if (!string.IsNullOrEmpty(dr["LiangNian"].ToString())) right.LiangNian = Convert.ToInt32(dr["LiangNian"]);
            if (!string.IsNullOrEmpty(dr["YXCGB"].ToString())) right.YXCGB = Convert.ToInt32(dr["YXCGB"]);
            if (!string.IsNullOrEmpty(dr["YXJWHGB"].ToString())) right.YXJWHGB = Convert.ToInt32(dr["YXJWHGB"]);
            if (!string.IsNullOrEmpty(dr["DXSCG"].ToString())) right.DXSCG = Convert.ToInt32(dr["DXSCG"]);
            if (!string.IsNullOrEmpty(dr["SanZhi"].ToString())) right.SanZhi = Convert.ToInt32(dr["SanZhi"]);
            if (!string.IsNullOrEmpty(dr["BX"].ToString())) right.BX = Convert.ToInt32(dr["BX"]);
            if (!string.IsNullOrEmpty(dr["ZF"].ToString())) right.ZF = Convert.ToInt32(dr["ZF"]);
            if (!string.IsNullOrEmpty(dr["ZHGL"].ToString())) right.ZHGL = Convert.ToInt32(dr["ZHGL"]);
            if (!string.IsNullOrEmpty(dr["XXGL"].ToString())) right.XXGL = Convert.ToInt32(dr["XXGL"]);
            if (!string.IsNullOrEmpty(dr["CWGL"].ToString())) right.CWGL = Convert.ToInt32(dr["CWGL"]);
            if (!string.IsNullOrEmpty(dr["JJGL"].ToString())) right.JJGL = Convert.ToInt32(dr["JJGL"]);
            if (!string.IsNullOrEmpty(dr["CSJSGL"].ToString())) right.CSJSGL = Convert.ToInt32(dr["CSJSGL"]);
            if (!string.IsNullOrEmpty(dr["NCJSGL"].ToString())) right.NCJSGL = Convert.ToInt32(dr["NCJSGL"]);
            if (!string.IsNullOrEmpty(dr["BSYJS"].ToString())) right.BSYJS = Convert.ToInt32(dr["BSYJS"]);
            if (!string.IsNullOrEmpty(dr["SSJYS"].ToString())) right.SSJYS = Convert.ToInt32(dr["SSJYS"]);
            if (!string.IsNullOrEmpty(dr["SSYJS"].ToString())) right.SSYJS = Convert.ToInt32(dr["SSYJS"]);
            if (!string.IsNullOrEmpty(dr["BKJYS"].ToString())) right.BKJYS = Convert.ToInt32(dr["BKJYS"]);
            if (!string.IsNullOrEmpty(dr["BK"].ToString())) right.BK = Convert.ToInt32(dr["BK"]);
            if (!string.IsNullOrEmpty(dr["DZJYS"].ToString())) right.DZJYS = Convert.ToInt32(dr["DZJYS"]);
            if (!string.IsNullOrEmpty(dr["DZ"].ToString())) right.DZ = Convert.ToInt32(dr["DZ"]);
            if (!string.IsNullOrEmpty(dr["BS"].ToString())) right.BS = Convert.ToInt32(dr["BS"]);
            if (!string.IsNullOrEmpty(dr["SS"].ToString())) right.SS = Convert.ToInt32(dr["SS"]);
            if (!string.IsNullOrEmpty(dr["XS"].ToString())) right.XS = Convert.ToInt32(dr["XS"]);
            if (!string.IsNullOrEmpty(dr["WYQ"].ToString())) right.WYQ = Convert.ToInt32(dr["WYQ"]);
            right.Duty = dr["Duty"].ToString();
            right.OrgName = dr["OrgName"].ToString();
            right.OrgName_Duty = dr["OrgName_Duty"].ToString();
            return right;
        }
    }
}
